﻿
$(document).ready(
    $(function() {
            $("#buttonInput").click(function() {
                localStorage.clear();
                localStorage.setItem("Логин", $("input").first().val());
                localStorage.setItem("Роль", $("option").filter(function(value) {
                    return (arguments[1].selected == true);
                }).text());
            });
        }
    ));